package com.prothink.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName : JsCourse  //类名
 * @Description : 课程列表  //描述
 * @Author : Zhang //作者
 * @Date: 11/21  10:52
 */
//@Document(indexName = "jsCourse",createIndex = true)	//索引的名称
public class JsCourse {
//    @Id
    private Integer courseId;   //课程主键
    private Integer userId;     //后台用户id
    private Integer classId;    //课程专业id
    private Integer recommend;  //推荐（2、新品  3、推荐 4、其他）
//    @Field(type = FieldType.Keyword)
    private String courseName;  //课程名称
    private String courseIntro; //课程简介
    private String coursePrice; //课程原价
    private String courseNprice;    //课程现价
    private Integer courseStatus;   //上架状态（2、上架  3、未上架）
    private Integer courseCstatus;  //审核状态(3未审核、4审核中、5审核失败、6已审核)
    private String coursePrimary;   //课程搜索关键词
    private String url;         //图片封面url地址
    private String courseUrl;   //课程url地址
    private String courseInfo;  //课程详情
    private Integer courseNo;   //课程第（1、2、3）集
    private Integer courseTime; //时长（分钟）
    private Integer likeNum;    //点赞数量
    private Integer shareNum;   //分享数量
    private Integer collectNum; //收藏数量
    private Integer lookNum;    //预览数量
    private Integer saleNum;    //销售数量
    private Integer id;         //序号
//    @Field(type = FieldType.Keyword)
    private String createId;    //创建人id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    @Field(type = FieldType.Date,format = DateFormat.basic_date_time)
    private java.util.Date createDate;  //创建时间
    private String updateId;        //更新人id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    @Field(type = FieldType.Date,format = DateFormat.basic_date_time)
    private java.util.Date updateDate;  //更新时间

    private String name;       //课程分类名称
    private String trueName;    //用户名称
    private Integer commentNum; //评论量

    private Integer commodityId;   //评论表 里对应的 课程id

    @Override
    public String toString() {
        return "JsCourse{" +
                "courseId=" + courseId +
                ", userId=" + userId +
                ", classId=" + classId +
                ", recommend=" + recommend +
                ", courseName='" + courseName + '\'' +
                ", courseIntro='" + courseIntro + '\'' +
                ", coursePrice='" + coursePrice + '\'' +
                ", courseNprice='" + courseNprice + '\'' +
                ", courseStatus=" + courseStatus +
                ", courseCstatus=" + courseCstatus +
                ", coursePrimary='" + coursePrimary + '\'' +
                ", url='" + url + '\'' +
                ", courseUrl='" + courseUrl + '\'' +
                ", courseInfo='" + courseInfo + '\'' +
                ", courseNo=" + courseNo +
                ", courseTime=" + courseTime +
                ", likeNum=" + likeNum +
                ", shareNum=" + shareNum +
                ", collectNum=" + collectNum +
                ", lookNum=" + lookNum +
                ", saleNum=" + saleNum +
                ", id=" + id +
                ", createId='" + createId + '\'' +
                ", createDate=" + createDate +
                ", updateId='" + updateId + '\'' +
                ", updateDate=" + updateDate +
                ", name='" + name + '\'' +
                ", trueName='" + trueName + '\'' +
                ", commentNum=" + commentNum +
                ", commodityId=" + commodityId +
                '}';
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseIntro() {
        return courseIntro;
    }

    public void setCourseIntro(String courseIntro) {
        this.courseIntro = courseIntro;
    }

    public String getCoursePrice() {
        return coursePrice;
    }

    public void setCoursePrice(String coursePrice) {
        this.coursePrice = coursePrice;
    }

    public String getCourseNprice() {
        return courseNprice;
    }

    public void setCourseNprice(String courseNprice) {
        this.courseNprice = courseNprice;
    }

    public Integer getCourseStatus() {
        return courseStatus;
    }

    public void setCourseStatus(Integer courseStatus) {
        this.courseStatus = courseStatus;
    }

    public Integer getCourseCstatus() {
        return courseCstatus;
    }

    public void setCourseCstatus(Integer courseCstatus) {
        this.courseCstatus = courseCstatus;
    }

    public String getCoursePrimary() {
        return coursePrimary;
    }

    public void setCoursePrimary(String coursePrimary) {
        this.coursePrimary = coursePrimary;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getCourseUrl() {
        return courseUrl;
    }

    public void setCourseUrl(String courseUrl) {
        this.courseUrl = courseUrl;
    }

    public String getCourseInfo() {
        return courseInfo;
    }

    public void setCourseInfo(String courseInfo) {
        this.courseInfo = courseInfo;
    }

    public Integer getCourseNo() {
        return courseNo;
    }

    public void setCourseNo(Integer courseNo) {
        this.courseNo = courseNo;
    }

    public Integer getCourseTime() {
        return courseTime;
    }

    public void setCourseTime(Integer courseTime) {
        this.courseTime = courseTime;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Integer getShareNum() {
        return shareNum;
    }

    public void setShareNum(Integer shareNum) {
        this.shareNum = shareNum;
    }

    public Integer getCollectNum() {
        return collectNum;
    }

    public void setCollectNum(Integer collectNum) {
        this.collectNum = collectNum;
    }

    public Integer getLookNum() {
        return lookNum;
    }

    public void setLookNum(Integer lookNum) {
        this.lookNum = lookNum;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }
}
